import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Spieler
 * Date: 10.09.2006
 * Time: 23:42:58
 */
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.pack();
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(100, 100);
        frame.setTitle("Hello World!");
        MyWindowListener listener = new MyWindowListener();
        frame.addComponentListener(listener);
        frame.addWindowStateListener(listener);
        frame.addPropertyChangeListener(listener);
        frame.addMouseListener(listener);
    }
}
